<?php
class OptionsController extends AppController {

	var $name = 'Options';
	var $scaffold;
	
	function isAuthorized(){
		if($this->Auth->user('group_id') == $this->Session->read('Settings.adminPermission')){		//admin jogosultságú júzerek
			return true;
		}
		return false;		//minden más tiltva
	}
}
?>